<?php
    /**
     * Created by PhpStorm.
     * User: mybook-lhp
     * Date: 18/10/4
     * Time: 下午5:40
     */

    namespace app\payment\api;


    use app\common\controller\API;
    use app\payment\model\PaymentOrderModel;

    class Order extends API
    {

        /**
         * 充值订单
         * api POST /payment/order/lists
         *
         * @param int status 状态
         * @param int lists_rows 每页显示条数
         * @param int page 当前第几页
         *
         * @throws \think\exception\DbException
         */
        public function lists()
        {

            $data      = $this->request->param();
            $list_rows = $data['list_rows'];
            unset($data['list_rows']);
            unset($data['page']);
            $data['member_id'] = env('member_id');;
            $data['status'] =1;
            $Order             = PaymentOrderModel::where($data)->order('create_time','desc')->paginate($list_rows);
            $this->result($Order);
        }

    }